﻿using FB.Membership.Annotations;
 
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace FB.Security.POIS
{
    public enum Menu : int
    {
        [Description("Membership Control")]
        MembershipControl = 140,
        [Description("Purchase Order")]
        Purchasing = 1000,
    }


    #region Purchase Order
    [SecurityFlag((int)Menu.Purchasing)]
    public enum Purchasing : long
    {
        [Description("檢視")]
        View = 1,
        [Description("檢視 - 部門")]
        ViewDept = 2,
        [Description("檢視所有用戶")]
        ViewAll = 4,

        [Description("搜尋")]
        Search = 8,
        [Description("申請")]
        Create = 16,
        [Description("取消申請")]
        Cancel = 32,
        [Description("拒绝申請")]
        Reject = 64,
        [Description("部門主管批核")]
        DeptApprove = 128,
        [Description("採購部批核")]
        PurchasingDeptApprove = 256,
        [Description("採購部 - 主管批核")]
        HeadOfPurchasingDeptApprove = 512,
        [Description("主席批核")]
        ChairmanApprove = 1024,

        [Description("申請管理 - 新增申請資料")]
        AdminCreate = 2048,
        [Description("申請管理 - 删除申請資料")]
        AdminDelete = 4096,
        [Description("申請管理 - 修改申請資料")]
        AdminEdit = 8192,

        [Description("詢問問題")]
        AskQuestion = 16384,
        [Description("檢視 - 已刪除的留言")]
        ViewDeletedPost = 32768,
    }
    #endregion



    
}
